Work on logic for battleships game. Currently infinite loops