Decided against separating the IO into different files, condensed it back into one text file, castling matching works