public Coord getNextSquare(Direction d) {
        int xMove = 0;
        int yMove = 0;

        switch(d) {
        case UP:
            yMove = -1;
            break;
        case DOWN:
            yMove = 1;
            break;
        case LEFT:
            xMove = -1;
            break;
        case RIGHT:
            xMove = 1;
            break;
        default:
            assert false;
            break;
        }

        int xp = coord.getX();
        int yp = coord.getY();

        return new Coord(xp + xMove, yp + yMove);
    }