casting rays from 0 to 90 degrees, collision detection with map