Issue with state change detection and incre/decrementing a variable

hi, i couldnt read that diagram for some reason but heres the circuit remade in fritzing