Battleship, in C