Battleship project in C