Naval Clash Game With 16x16 NeoPixel Matrix WS1812B - Random Ships Arrangement

Thank you all for your replies. For now it's been working just fine. It does not interrupt when I put randomSeed() function inside for loop. I just need random at each step because ships collisions happen and I need to get back to make a new position for the ship. In Wokwi it was different, though.