According to various reports, a former library director from Utah pled guilty to stealing $89,000 from the library where he worked at to purchase items for the popular mobile game “Game of War.” The man, named Adam Winger, was sentenced to 30 days in jail, community service and ordered to pay most of the stolen cash.

On Tuesday, Winger pled guilty to theft and forgery during an appearance at the Utah First District Court on Tuesday. Apparently the 38-year-old man stole North Logan City credit cards meant for funding the public library’s expenses to purchase hundreds of gift cards for himself, according to police. He then used those pre-bought gift cards to purchase items in “Game of War.”

Winger agreed to pay $78,000 in restitution back in June, but if he did not pay the debt by a date that was to be set by the court, Winger will have to repay the full $89,000.

If you’re wondering what he used the money for, the game allows users to spend real cash on purchasing materials, power-ups, and upgrades as well as in-game gold packs that cost anywhere from $5 to $100.

Winger had been the director of the North Logan City Library for about the past three years, before being fired obviously.