Randomness works
New features:
-Pressing 'B' drops the current piece straight down.
-Keeps track of score and lines, and displays them.
Major problem:
-Game flickers badly in skins using a low amount of resources (eg halowresource

). Works perfect in high-resource skins (eg bluespek haxored or however you spell it)
I guess the problem is that the framerate is high for skins that don't use too much resources, so the screen refreshes while the board is being drawn. Therefore sometimes the main layout of the skin flashes briefly, and the game board keeps flickering on/off.
There should be a way to lock screen updates while the screen is being drawn on.
e.g.
| CODE |
BeginDraw LockRefresh blah blah blah EndDraw |
'BeginDraw LockRefresh' should keep the current frame on the screen, until the EndDraw statement is reached, thus eliminating the flickering.
On another note, I've noticed that skins show up more 'completely' while switching (when it tells you to reboot). Is this an indication of runtime skin switching coming soon?