Everything is fine and dandy, but personally the code style of how you put braces is what saddens me the most, also the state framework you have is the cause for some spaghetti code.
But instead of using just simple sleeps, try looking into the ConditionalSleep class of OSBot.
Just my two cents :xfeels: