Fixed bug where ray would not find intersection if end point was outside of level map