Tweaked addStat subroutine, @stat now gets set correctly