fixed syntax error in logic
added (buggy) move functionality