added meld logic to ai
fixed bug in discard
fixing the fix