E.g. Phillip makes a new game, game object is returned. Since Phillip is the only person in the game object, we know phillip's id is the id of the only person in the game object. Then, Andrew joins and the game object is returned. The front end can filter on the person array by username (that's what I currently have it doing) but this won't work if people submit the same username. Either we need to enforce that username's can't be duplicated in a game, or the response for joining a game needs to specifically include the id of the new person
E.g. Phillip makes a new game, game object is returned. Since Phillip is the only person in the game object, we know phillip's id is the id of the only person in the game object. Then, Andrew joins and the game object is returned. The front end can filter on the person array by username (that's what I currently have it doing) but this won't work if people submit the same username. Either we need to enforce that username's can't be duplicated in a game, or the response for joining a game needs to specifically include the id of the new person