Fixed a major bug that was not apparent but now the engine runs much faster.
Added the testing code for the rasterizer.