Fixed bug in gamescreen that causes game to crash with inventory