A game algorithm like Rune Gems