Grid Based Inventory. Class not working