flag spinner

trying to get the flag spinner to work but can't seem to find what is
wrong...