Battleship game written in C, using ncurses