This is for Geedoman. It's his project and he asked for some help. I've modified some of his scripts to correctly count the missed shots.