Code fragments for robot chessboard