added the rays

tried to implement the intersection method for detecting walls. Havent
test it yet.