Refactors code to determine next move to HumanPlayer and ComputerPlayer classes