Use Game.side in Game.generate_moves()
Fix bug in bench
Refactor code to silence warnings