complex shapes collision detection algorithm completed