Set direction in move method in class