Fixed bugs in code. Adding gear items/ creating save files works.