Fixed a bug with Spherical ray tracer, refactored some code, added
entity collision to Linear ray tracer