Word Definition - 将计就计

jiāng jì jiù jì to beat sb at their own game (idiom)