I also think that the problem was the big array. I tried to save all ships in simple vars. And this has functioned ^^
Thanks to all who wanted to help me.
If I have new problems, I will post again.