More work on logic. Tried to implement card giving still not fully
implemented