Secret Codes and battleships