Switch names of states as they were reversed

Switch names of states as they were reversed - LEFT & RIGHT were
reversed.
Added default cases to switches to handle errors.