Improved readability of nextMode and lastMode

Added an else and comment at the end of nextMode

Rearranged lastMode to make more sense

It works, it has no negative effect, DON'T MINDLESSLY REVERT THIS ZACH