added a bestAction member to the State class