Using GameObject.Find in a if statement like that is really bad, although findwithtag is much less intensive then find. I recommend using other methods to get the GameObject you need because it is a bad habit that people tend to abuse. However, making a single call and cache the value is acceptable, although I would use other methods even still just to get used to not relying on it.
Secondly, use code tags so we can read your code and just post your entire script instead of trying to edit it.
Re-post your code properly and I/we will look at it. I can’t read it in it’s current format.
Please repost the entire code, it is useless if we can’t see your update, start, and other functions.
Also, your problem may actually lie somewhere else but if you don’t post it all we will never know.