The B.C. government is struggling to handle shifts in an illegal virtual market that is eating into lottery profits.