From Longman Dictionary of Contemporary Englishgame the systemgame the systemto use rules or laws to get what you want in an unfair but legal way → game
Examples from the Corpus
game the system• Yet since even the best laws leave loopholes, unsavory characters find ways to game the system.• Linder accused insurance companies of gaming the system to increase profits.