Fighting cheaters: how and how much to invest