java programming code of quick match game.