Battleship game in C