Fix for getNearestEnemy() (also, some changes in move)