fixed the flashing of the enemies