This code is working for python 3 Python version used 3.5.2
To run the code, You can use the below commands
python3 main.py test_input.txt (ship locations out of boundry)
python3 main.py test_input1.txt (winner scenario)
python3 main.py test_input2.txt (no winner declare peace)