added calculate_doors_moving_points