use bool instead of int

using bool instead of int to indicate a char has been recorded