cleaned code

cleaned the X's and Y's in the move method and in the logic & move methods.