collide func updated to prevent redundant calculation
Merge pull request #4 from dreid1991/master

collide func updated to prevent redundant calculation