Ray tracer is now working properly