Avalanche Function In Rainbow Riches