Added the updateEnemy and getEnemy functions