Sofia's stuff
Card bug fix and Chat code hidden in.