Move function
Placed put_mark under square_to_move