added a function to_move_list that puts our solutions in the same format as
specified in the lab writeup