public boolean free(Point p) {//This does not count the player (yet) TODO make this count the player REMEMBER THE SIMILAR CODE IN THE PATHFINDING
        int key = genKey(p);
        boolean tilefree = false;
        boolean actorfree = true;
        if (tileHashMap.containsKey(key)) {
            tilefree = tileHashMap.get(key).isPassable();
        }
        if (actorHashMap.containsKey(key)) {
            actorfree = false;
        }


        return tilefree && actorfree;
    }