fixing glitches on game screen