Fixed an issue with updateEnemyPlayer