def new(): """Start a new game. Create a new Game object, quit current game if any, start the game, and redirect to / route. """ game = Game() if current_user.has_current_game: current_user.current_player.quit() game.add_player(current_user) game.start() return redirect('/')