some refactoring to prepare for a user having multiple games running