transform.translate(rect.width / 2, rect.height / 2);
transform.rotate(rotationAngle);
transform.translate(-rect.width / 2, -rect.height / 2);
gc.setTransform(transform);
transform.dispose();
gc.drawImage(ace_club, 0, 0);
// ace of diamonds
transform = new Transform(device);
transform.translate((int) movDiamondX, (int) movDiamondY);