added inventory and player position tracking