stupid solution for battleship 1 player problem