changed call to getInput to getNextMove