Raytracer coding in java