Fixed bug where right side of the screen would sometimes generate a solid wall.

i think i fixed it... needs testing.