def create_game_service(request):
    game = Game()
    game.cat_user = request.user
    game.save()
    context_dict = {}
    context_dict['game'] = game
    return render(request, 'mouse_cat/new_game.html', context_dict)
def create_ai_game_service(request):
    game = Game()
    game.cat_user = request.user

    if User.objects.filter(username="******").exists():
        game.mouse_user = User.objects.filter(username="******").first()

    else:
        game.mouse_user = User.objects.create_user('Bot', '', '0i80t81d16s810')

    game.save()
    context_dict = {}

    context_dict['game'] = game

    return select_game_service(request, game_id=game.id)