The glitch with the last-minute rotation causing game overs or reversed pieces has been solved. thanks go to thebestporter. THAT is what I call a bug report. It allowed me to pinpoint the bug in a matter of seconds... nice work.
Thanks for the comments!
The "rotation" bug should be fixed now.
Regarding pieces not appearing: blame Adobe and their Random Number God :)
Regarding the difficulty in moving the pieces, could you be more specific? You cannot press the keys quickly enough? The autorepeat rate is too low? The pieces drop too fast? This last one is totally intended, it's meant to be _hard_ .