public Player(String name, int money) {
		playerId = classId++;
		randomGenerator = random;
		NAME = name;
		this.money = money;
		neededMoney = 0;
		inJail = false;
		dices = new int[2];
		dices[0] = 4;
		dices[1] = 2;
		turnEnd = true;
		giveUp = false;
		threwDice = 0;
		timeInJail = 0;
		trading = -1;

		//sets the color for the first six players and for the others a random one
		switch(playerId) {
			case 0:
				color = new Color(217, 94, 217);
				break;
			case 1:
				color = new Color(0, 171, 209);
				break;
			case 2:
				color = new Color(234, 130, 0);
				break;
			case 3:
				color = new Color(0, 192, 137);
				break;
			case 4:
				color = new Color(207, 0, 4);
				break;
			case 5:
				color = new Color(255, 235, 18);
				break;
			default:
				color = new Color(random.nextInt(255), random.nextInt(255), random.nextInt(255));
		}

		jailbreak = new Vector<Jailbreak>();
		property = new ArrayList<PurchasableCircularList>();
		playerEventListeners = new ArrayList<PlayerEventListener>();
	}