chess board problem