fixed stochastic ray generation, attempted to create a chessboard plane but due to time constraints could not implement and test, final version to be handed in