Have added tests and docstrings
Merge branch '16331' of github.com:theref/sage-game-theory into 16331