return if sprite should flash from the function,
remove global variable