Fixed bug in isEnemy.