public void clearEnemy(Enemy e) {
        for (MapTile[] tileRow : navigationGraph) {
            for (MapTile tile : tileRow) {
                if (tile != null && tile.getEnemy() == e) {
                    tile.setEnemy(null);
                }
            }
        }
    }