My implementation of tetris