more tetris bugfixing

Sorry about all the commits. I've just been using http://delaze.me to
check whether my code works, rather than setting up localhost on my
computer