Game naval battle in language C