Cleaning up the code

all FindObjectsWithTag calls are replaced with the static list of atoms.