Debugged system test

--Added a waitRelease(int) function that waits until the button is
released. This is used in four cases
--Changed the 'while' structure to an 'if' structure so we don't have to
call EndTimeSlice quite as much
--Reverted nextMode / lastMode. It was giving compiler errors about
comparing Mode types to shorts.
--Simplified the enum declaration. If this works we should mirror it to
ruler.