The child's game sense is probably from French marelle (“hopscotch”), later reinterpreted as having to do with amarelo (“yellow”).
amarelinha f (plural amarelinhas)
amarelinha