replaced temporary function for random polygonsprites with functionality
of random patterns