Fixed a bug. Turned out I needed to change one character. Thanks to https://stackoverflow.com/questions/26479395/access-violation-with-using-structures-and-arrays-without-using-pointers