private int getBallNumber(int arrayIndex)
	{
		int currentBall = 10;
		for (int i = 0; i < arrayIndex; i++)
		{
			int pinsKnockedDown = pinsKnockedDownArray[i];
			if (pinsKnockedDown == 0)
			{
				currentBall += 5;
			}
			if (pinsKnockedDown != 10 && pinsKnockedDown != 0)
			{
				currentBall += 5;
			}
			else if (pinsKnockedDown == 10)
			{
				currentBall += 10;
			}
		}

		if (currentBall % 2 == 0)
		{
			return 1;
		}
		return 2;
	}