private void changeDirection()
	{ // 0 = UP, 1 = DOWN, 2 = LEFT, 3 = RIGHT
		int[] chances = new int[4];

		if(direction.equals("U"))
		{
			chances[0] = generator.nextInt(5);
			chances[1] = generator.nextInt(10);
			chances[2] = generator.nextInt(20);
			chances[3] = generator.nextInt(20);
		}
		if(direction.equals("D"))
		{
			chances[0] = generator.nextInt(10);
			chances[1] = generator.nextInt(5);
			chances[2] = generator.nextInt(20);
			chances[3] = generator.nextInt(20);
		}
		if(direction.equals("L"))
		{
			chances[0] = generator.nextInt(20);
			chances[1] = generator.nextInt(20);
			chances[2] = generator.nextInt(5);
			chances[3] = generator.nextInt(10);
		}
		if(direction.equals("R"))
		{
			chances[0] = generator.nextInt(20);
			chances[1] = generator.nextInt(20);
			chances[2] = generator.nextInt(10);
			chances[3] = generator.nextInt(5);
		}
		int index = 0;
		int max = 0;
		for(int a = 0; a < chances.length; a++)
		{

			if(chances[a] > max)
			{
				max = chances[a];
				index = a;
			}
		}
		switch(index)
		{
			case 0:
			{
				direction  = "U";
			}
			break;
			case 1:
			{
				direction  = "D";
			}
			break;
			case 2:
			{
				direction  = "R";
			}
			break;
			case 3:
			{
				direction  = "L";
			}
			break;
			default:
			{
				direction  = "U";
			}
			break;
		}

	}