Reorganize functions in Game

API functions are placed near the top, while internal functions are down
to the bottom of the file.
Rematch switches service based on prior game
Built dist