fixed item inventory lua stuff and a bug in movement