public bool CreateNewGame(int byInPolicy, int numOfPlayers) { try { Collection <UserManagement.User> users = new Collection <UserManagement.User>(); UserManagement.User user = _user.AddNewUser("temp" + _userCreationIndex, "12344234"); UserManagement.User user2 = _user.AddNewUser("temp2" + _userCreationIndex, "12344234"); _userCreationIndex++; user.SetMoney(80); users.Add(user); if (numOfPlayers > 1) { users.Add(user2); } IGame client = new GameLogic.Game_Client.GameClient(users, GameType.Limit, byInPolicy, 10, 2, 10, true, new GameLogic.Chip(10)); _game.ActivateGame(client); return(true); } catch (Exception e) { return(false); } }