added functionality to the automatedPlayer