updated battleship.py

tidier code with more user defined functions
added docstrings for all user defined functions

unfinished