Towards smart enemies.