Refactored EqualMatrixChecker.cd and GameEngine.cs