add polygon collision detection, update demos