Bluetooth not completely working but mostly implemented

The problem is that it checks the number of paired devices with disregar
if they are connected or not