It sounds like a variation of "crazy eights". If you Google it, you will find this (amongst other things): Variations
Crazy Eights is one of the easiest games to elaborate by adding variations, and is rarely played in its basic form. There are variations in the number of cards dealt, the rules about drawing cards and the scoring system. Usually, special meanings are given to particular cards; when played these cards affect the sequence of play, or have other effects.