Don't use instanceof
Merge pull request #3 from gameclosure/fix-collision

Don't use instanceof