Updating ray tracer with more functionality, still not working yet