Fixed the random texture bug finally.

Was happening because of janky placement of rays in map.py. Finally.