fix a bug in tetris and memroy leak in game