Fixed while loop in Enemy.update()