MB Battleship Game Fix Needed

Two years ago I was able to use this MB Battleship game with my 7th grade students. Now, I can only pair the 2 MBs and place the battleship targets. When it comes to targeting/shooting to play the game, that part does not work. Any suggestions for a fix? Here’s a link to the game code: