added simple obstacle collision capabilities