chessboard problem