Made cards_client more robust so that gui client can use it properly
First fully functional gui client