fixed bug when checking if end of slope is blocked by other element