change counts to boolean when deciding if everything is connnected