public boolean moveRook(int[][]board, int[]locations, int sx, int sy, int x, int y) {
        if (checks.onBoard(x, y) && checks.empty(locations, x, y)) {
            
            if (sx == x && checks.rookCheckVertical(board, sx, sy, x, y)) {
                return true;
            }
            
            if (sy == y && checks.rookCheckHorizontal(board, sx, sy, x, y)) {
                return true;
            }
        }
        
        return false;
    }