func (mr *MatchRouting) Start() {
	for {
		matchRequest := <-mr.MatchRequest
		switch matchRequest.Type {
		case MatchRequestType_Join:
			mr.AddPlayerToStagingArea(matchRequest.PlayerID, matchRequest.PlayerConnection)
		case MatchRequestType_Create:
			mr.AssignMatchesToPlayers()
		default:
			fmt.Println(fmt.Sprintf("Unimplemented match request type !!- %#v", matchRequest))
		}

	}
}
// match staging area handles the players being added to a new match
// reconnecting players not handled for now
//TODO: handle reconnecting players after disconnection
match staging area handles the players being added to a new match
reconnecting players not handled for now
TODO: handle reconnecting players after disconnection
// match staging area handles the players being added to a new match // reconnecting players not handled for now // TODO : handle reconnecting players after disconnection
func (mr *MatchRouting) Start() {
	for {
		matchRequest := <-mr.MatchRequest
		switch matchRequest.Type {
		case MatchRequestType_Join:
			mr.AddPlayerToStagingArea(matchRequest.PlayerID, matchRequest.PlayerConnection)
		case MatchRequestType_Create:
			mr.AssignMatchesToPlayers()
		default:
			fmt.Println(fmt.Sprintf("Unimplemented match request type !!- %#v", matchRequest))
		}
	}
}
func ( mr * MatchRouting ) Start ( ) { for { matchRequest := <- mr . MatchRequest switch matchRequest . Type { case MatchRequestType_Join : mr . AddPlayerToStagingArea ( matchRequest . PlayerID , matchRequest . PlayerConnection ) case MatchRequestType_Create : mr . AssignMatchesToPlayers ( ) default : fmt . Println ( fmt . Sprintf ( " " , matchRequest ) ) } } }
match staging area handles the players being added to a new match
reconnecting players not handled for now
TODO: handle reconnecting players after disconnection
match staging area handles the players being added to a new match reconnecting players not handled for now TODO : handle reconnecting players after disconnection