Changed `bit` to `bool`

Because of error "undefined identifier bit" we need to change `bit` to `bool`.