Added separate class to handle conversion of the supervillain stack to JSON