Bad egg means that the checksum of pokemon is not passed, and it's not supposed to appear when you're playing a game. typically the appearance of bad egg is because ppl don't know how to assign free RAM space for new flags and variables and then the pokemon RAM/box RAM data gets interfered.