gui update

inventory display now correctly displays what items player has.
Also added an exception that is thrown if unsafe thread things happen.