public void updateStates() {
		for (Player p : players) {
			if (p != null && !p.dead) {
				p.update();
			}
		}

		for (Attack a : attacks) {
			if (a != null) {
				a.update();
				int y = a.getLoc().getY();
				int x = a.getLoc().getX();
				if (y < 0 || y > StartUp.height || x < 0 || x > StartUp.width) {
					attacks.remove(a);
				}
			}
		}

	}