Reworked proverb implementation to avoid recursive function