Fixing bug that piled memory usage in sleep mode

Garbage collector wouldn't clean cursorInTime until one was actually
used by the program. Rearranging to not even check cursor location while
sleeping fixed this.