Created a Client class. Client's onStatuschanged gets called when client connects to server