Created functionalities for Tetris mode.