My stab at writing tetris