fixed internal compiler error.
fixed inventory. It runs without errors now. Sword still not working.