Moving piece from functionality from TetrisMain.