The program is now functional. Bugs are still present but the program roughly works.