Port of MTGLifeCounter to swift