def play_step(env, action_to_take):
    """
    Given the action to be taken, plays a step in the environment and returns the new set of values

    :param env: function
        OpenAI gym environment.
    :param action_to_take: int
        Action index to be taken for the current step.

    :return: next_state: 3-tuple
        (Player's sum, Dealer's sum, Boolean indicating if the player has ACE).
    :return: reward: int
        Reward received for choosing the given action
    :return: done: boolean
        Boolean indicating if the state is a terminal or not.
    """
    next_state, reward, done, info = env.step(action_to_take)
    return next_state, reward, done