fixing a bug due to Inventory access being unsafe
modified:   src/game/GameLoop.java
modified:   src/userInterface/Inventory.java