Modify makeMove function and write an example.