TODO: debug --level 1, clean up debugging output
fixed consumed_gears to actual_gears discrepancy