Instead of using getMove here just take the move as an argument for the function.