How and when is the 'occur' variable reset? You are close to what I suggested, but you are still connecting all blocks together when I said they need to be separated.