public void repaint(SnakePlayer[] players) {
		for (int i = 0; i < players.length; i++) {
			if (players[i].isAlive()) {

				updateScore(players[i]);
				for (int d = 0; d < 10; d = d + 2) {
					 int player = players[i].PlayerID - 1;
					 if (player >= 0){
						 
					 
					bi.setRGB((int) players[i].playerArray[d],
							(int) players[i].playerArray[d + 1],
							ColorArray[players[i].PlayerID - 1]);
					ii = new ImageIcon();
					ii.setImage(bi);

					gamePane.setIcon(ii);
					gamePane.validate();
				}
				ii = new ImageIcon();
				ii.setImage(bi);

				gamePane.setIcon(ii);
				gamePane.validate();
				 }
			}
		}
	}