making "koopas"

I'm trying to create an immitation Mario Bros., and i cant seem to find out how to make the koopas go inside their shells without making all of the clones get shelled, when i jump on top of only one. i'll try attatching the game. (To understand what im talking about, you would've had to played super mario Bros. before)