made a method to check if device can connect to google play services