Battleship placement algorithm

Algorithm to accurately and reliably place battleships onto the board.