import java.util.*;

/*
* AchievementTracker needs some of the methods here properly function
*/

public class Player{
   private ArrayList<Achievement> locked;
   private ArrayList<Achievement> unlocked;
   public double drug;
   public double money;
   public double launderedMoney;
   
   public Player(){
      locked = new ArrayList<Achievement>();
      unlocked = new ArrayList<Achievement>();
      drug = 0;
      money = 0;
      launderedMoney = 0;
   }
   
   // creates and add an achievement in the locked list
   public void addAchievement(int ID, String description){
      locked.add(new Achievement(ID, description));
   }
   
   // returns the number of unearned achievements
   public int getLockedSize(){
      return locked.size();
   }
   
   // seachers for the achievement in the locked list, removes it and adds it to unlocked
   public void unlockAchievement(int ID){
      Achievement a = null;
      for (int i = 0; i < locked.size() && a == null;i++){
         if (locked.get(i).getID() == ID){
            a = locked.get(i);
            locked.remove(i);
            unlocked.add(a);
         }
      }
   }
   
   public double getDrug(){
      return drug;
   }
   
   public double getMoney(){
      return money;
   }
      
   public double getLaunderedMoney(){
      return launderedMoney;
   }
   
   // returns locked achievement in the given index
   public Achievement getAchievement(int i){
      return locked.get(i);
   }
   
   // not normally used, for testing purposes
   public void printAchis(){
      System.out.println("Locked:");
      for (int i = 0; i < locked.size();i++)
         System.out.println(locked.get(i).getDescription());
      System.out.println("Unlocked:");
      for (int i = 0; i < unlocked.size();i++)
         System.out.println(unlocked.get(i).getDescription());
   }
   
   // returns the IDs of unlocked achievements so they can be saved
   public ArrayList<Integer> getEarnedAchievementIDs(){
      ArrayList<Integer> i = new ArrayList<Integer>();
      for (Achievement a : unlocked)
         i.add(a.getID());
      return i;
   }
}

@@ -68,30 +68,48 @@
 ods 
-here
+and
  proper
-ly function
+ties here to function properly
 %0A*/%0A
@@ -220,88 +220,8 @@
 ed;%0A
-   public double drug;%0A   public double money;%0A   public double launderedMoney;%0A
    %0A
@@ -336,67 +336,8 @@
 ();%0A
-      drug = 0;%0A      money = 0;%0A      launderedMoney = 0;%0A
    %7D
@@ -648,13 +648,11 @@
  sea
+r
 ch
-ers
  for
@@ -1020,696 +1020,127 @@
 %0A   
-public double getDrug()%7B%0A      return drug;%0A   %7D%0A   %0A   public double getMoney()%7B%0A      return money;%0A   %7D%0A      %0A   public double getLaunderedMoney()%7B%0A      return launderedMoney;%0A   %7D%0A   %0A   // returns locked achievement in the given index%0A   public Achievement getAchievement(int i)%7B%0A      return locked.get(i);%0A   %7D%0A   %0A   // not normally used, for testing purposes%0A   public void printAchis()%7B%0A      System.out.println(%22Locked:%22);%0A      for (int i = 0; i %3C locked.size();i++)%0A         System.out.println(locked.get(i).getDescription());%0A      System.out.println(%22Unlocked:%22);%0A      for (int i = 0; i %3C unlocked.size();i++)%0A         System.out.println(unlocked.get(i).getDescription()
+// returns locked achievement in the given index%0A   public Achievement getAchievement(int i)%7B%0A      return locked.get(i
 );%0A 

Update Player.java