public Location getLocationAtDirection(Direction direction) {
        switch (direction) {
            case UP:
                return new Location(column, row - 1);
            case DOWN:
                return new Location(column, row + 1);
            case LEFT:
                return new Location(column - 1, row);
            case RIGHT:
                return new Location(column + 1, row);
            default:
                return new Location(column, row - 1);
        }
    }