Add UnitTests for MatrixGenerator and Gameplay