public boolean rookCheckHorizontal(int[][]board, int sx, int sy, int x, int y) {
        if (sx < x) {
            for (int i = sx + 1; i < x; i++) {
                if (board[sy][i] != 0) {
                    return false;
                }
            }  
            
            return true;
        } else {
            for (int i = sx - 1; i > x; i--) {
                if (board[sy][i] != 0) {
                    return false;
                }
            }
            
            return true;
        }        
    }