nope, i didnt use your code. besides:
Flip
Delay 5
replaced with:
Flip 0
Delay 1000.0/60.0
will save cpu usage, because Flip True will usa a lot of cpu usage because the Flip command itself is pausing!!
btw: does my code look like yours? i dont think so ;)