changed chooseMove to record the move