simulation of the famous card popularly called "Mangatha" or "ulleh velliyeh" in java