public int createGame(string name) { int status = fishService.AddGame(name, user.Username); if (status == 0) { fishService.JoinGame(user.Username, name); currentScreen = Screen.lobby; activateScreen(); //Console.WriteLine(gameLobby.name); } else if (status == 1) { ErrorWindow win2 = new ErrorWindow("A game with that name already exists. Please select a different name"); win2.ShowDialog(); } else { ErrorWindow win2 = new ErrorWindow("An error has occured. Please try again."); win2.ShowDialog(); } return(status); }