Sprite flashes twice when game resets