By "the box behind the window" do you mean the transmission controller?
Is this tractor a before JJA0105000 serial number?
If so, the early MXs were prone to wiring problems due to an excessive number of "Y" connectors that caused high resistance and intermittent opens.