adds docs for matrix_to_game
adds docs, tests and examples to game_to_matrix