@Override
    public void setMovement(Board b) {
        int x = getLocation().getX();
        int y = getLocation().getY();

        movement.setSize(0);
        movement.trimToSize();

        if (y > 6 || b.getCell(new Location(x, y+1)) != null) {

        } else {
            movement.add(new Location(x, y+1));
        }

        if (x < 7 && y < 7 && b.getCell(new Location(x+1, y+1)) != null) {
            movement.add(new Location(x+1, y+1));
        }

        if (x > 0 && y < 7 && b.getCell(new Location(x-1, y+1)) != null && b.getCell(new Location(x-1, y+1)).isWhite() != isWhite()) {
            movement.add(new Location(x-1, y+1));
        } else {

        }

        /**
        if (moves == 0 && y < 6 && b.getCell(new Location(x, y+2)) == null || ((b.getCell(new Location(x, y+2)) != null && b.getCell(new Location(x, y+2)).isWhite() != isWhite()))) {
            movement.add(new Location(x, y+2));
        } else {

        }
        */

        moves++;
    }