public boolean passable(int x, int y) {
        if (x < 0 || y < 0 || x >= this.mapWidth || y >= this.mapHeight) {
            return false;
        }
        return this.grid[x][y] == null || this.grid[x][y].passable();
    }