Moves code for each mode into mode file
Resets break time elapsed when sitting in limbo mode as well.