Fixing bug relating to valueAxisValueIndex.
The symptom was the colours changed the same way when the accelerometer was tilted in either direction when they should change differently.

It was working before the code was refactored into a separate class, the restores the previous behaviour.