fixed try-move function, completed exercise 12