public void updatePlayer(String update) { //Comes in the form Zid:x,y,heading
		char type = update.charAt(0);
		if(type == 'D'){
			String id = update.substring(1);
			Player dead = null;
			for(Human h : humans){
				if(Integer.toString(h.player_id).equals(id)){
					dead = h;
				}
			}
			for(Zombie z : zombies){
				if(Integer.toString(z.player_id).equals(id)){
					dead = z;
				}
			}
			killPlayer(dead);
		} else {
			String[] split = update.split(":");
			String pid = split[0];
			String[] position = split[1].split(",");
			String heading = position[2];
			Point pos = new Point(Double.parseDouble(position[0]), Double.parseDouble(position[1]));



			boolean newplayer = true;
			if (type == 'Z') {
				for (Zombie zombie: zombies){
					if (zombie.getPlayer_id().equals(pid)) {
						newplayer = false;
						zombie.setLocation((int)pos.X(), (int)pos.Y());
						zombie.setHeading(heading);
					}
				}
			} else if (type == 'H') {
				for (Human human: humans) {
					if (human.getPlayer_id().equals(pid)) {
						newplayer = false;
						human.setLocation((int)pos.X(), (int)pos.Y());
						human.setHeading(heading);
					}
				}
			}
			if (newplayer) {
				newPlayer(type, pid, pos);
			}
		}
	}