@Override
 public List<GameObject> getInstancesOfType(String type) {
   List<GameObject> matches = new ArrayList<GameObject>();
   for (GameObject object : this.objects.values()) {
     if (object.getTypes().contains(type)) {
       matches.add(object);
     }
   }
   return matches;
 }
 @Override
 public void addGameObject(GameObject object) {
   this.objects.put(object.getTemplateID(), object);
 }