Textual implementation of Battleship in Python