added a recursive version of the makeMove function.