A TypeScript implementation of Heroes of Might and Magic