public void regenApple(){
		x = new Random().nextInt(Snake.wa);
		y = new Random().nextInt(Snake.ha);

		color = Color.RED;
		
		if(new Random().nextInt(10)==0)
			color = Color.YELLOW;
		if(new Random().nextInt(15)==0)
			color = Color.GRAY;
		if(new Random().nextInt(5)==0)
			color = Color.GREEN;
		
		for(SnakePart s: Snake.snake){
			if(s.x == x && s.y == y){
				regenApple();
				return;
			}
		}
	}