fix errors with the makeMove() function