fix the bugs in circular_movement.rb and direction_generator.rb