public void readVariables(DataInputStream stream) throws Exception {
        sound = stream.readBoolean();
        lastLevel = stream.readInt();
        
        for(int i = 0; i < 5; i++){
            bestCombo[i] = stream.readInt();
            savedAnimals[i] = stream.readInt();
            highscore[i] = stream.readInt();
        }
        
        money = stream.readInt();
        ItemDatabase.ALAT_MASAK.setBought(stream.readBoolean());
        ItemDatabase.TONGKAT.setBought(stream.readBoolean());
        ItemDatabase.TALI.setBought(stream.readBoolean());
        ItemDatabase.HASDUK.setBought(stream.readBoolean());
        ItemDatabase.RING.setBought(stream.readBoolean());
        ItemDatabase.BADGE.setBought(stream.readBoolean());
        
        ItemDatabase.ALAT_MASAK.setEquipped(stream.readBoolean());
        ItemDatabase.TONGKAT.setEquipped(stream.readBoolean());
        ItemDatabase.TALI.setEquipped(stream.readBoolean());
        ItemDatabase.HASDUK.setEquipped(stream.readBoolean());
        ItemDatabase.RING.setEquipped(stream.readBoolean());
        ItemDatabase.BADGE.setEquipped(stream.readBoolean());
    }