Restructuring classes to work with Tetris and Snake game.