Battleship! An issue with the int()

I seem to be having an issue with the int() as well. Very frustrating as sometimes it works and sometimes it just hangs and I have to go completely out of exercise to the home page and then back in for it to load. Error included:

raw_input is legacy Python, try int(input(prompt)) instead. This could fix the issue, since the Python course was recently updated to Python3.