Added contact handling for the shapes with the hero.