Simple ray tracer in java