Not detecting 2nd type of target

For some reason my code only detects my moving targets and not my stationary ones, any help? (I’m new to this so this might be really simple)
Screenshots of my code:
Picture5
Picture6
Picture7
Picture8
Picture9