def evaluate(env, model, n_games=10):
    """
    Evaluates the learned model.
    TODO in a later steps invalid actions could be removed so that only valid actions can be chosen.
    :param env:
    :param model:
    :param n_games:
    :return:
    """
    for i in range(n_games):
        obs = env.reset()
        for j in range(9):
            action = model.predict(obs)[0]
            obs, rewards, dones, info = env.step(action)
            print(f'Reward: {rewards}')
            env.render()
