added the game manager
added connectivity function.  tests pass, but it's ugly.  refactor this.