A java program that learns to play take-away games