Updated logics for tetris game