Throws an error when the board is marked with an invalid mark