Completed refactor of flag code, added purchasable hints for boxes