A thesis on tetris