added collision check for end point
Merge branch 'master' of https://github.com/therauli/Submarinescape