client code of puzzle and clock game