
world = {}
begin = 'InTheMiddleOfTheFizzBuzzCircle'

def InTheMiddleOfTheFizzBuzzCircle(payload,put,get):
    cnt = payload.get('fizzbuzz',0)
    def fizzbuzz(num):
        if num % 3 + num % 5 == 0:
            return 'fizzbuzz'
        if num % 3 == 0:
            return 'fizz'
        if num % 5 == 0:
            return 'buzz'
        return num
    put([
        'sit under the only light spot'
        'sit in the middle of 7 preschool child circle',
        'they sit around the light spot, the rest is totally black',
        'the first is a blonde girl who said %s' % fizzbuzz(cnt+1),
        'the second is a black curly haired boy who said %s' %fizzbuzz(cnt+2),
        'the third is a ginger who followed %s' %fizzbuzz(cnt+3),
        'the fourth who is a brown boy then said %s' %fizzbuzz(cnt+4),
        'the fifth is a brown girl continued %s' %fizzbuzz(cnt+5),
        'the sixth, you cant really tell if girl or boy, said %s' %fizzbuzz(cnt+6),
        'the last is a really strong boy who finished %s' %fizzbuzz(cnt+7)
    ])
    payload['fizzbuzz'] = cnt+7
    cmd = get('nothing to do',['fizz','buzz','fizzbuzz','#'])
    if fizzbuzz(cnt+8) in cmd:
        payload['next'] = 'exit'
    else:
        payload['next'] = begin
    return payload
world['InTheMiddleOfTheFizzBuzzCircle'] = InTheMiddleOfTheFizzBuzzCircle
