Final pre-competiton code with debug statement (might have huge feeder
logic error)