ray in a box solved