makeMove function done