public static void Main()
for (int i = 0; i < player.GetLength(0); i++)
teamgreen += player[i, 1];
else if (player[i, 0] == 2)
Console.WriteLine("Red team wins with a score of " + teamred);
else if (teamgreen > teamred)
Console.WriteLine("Green team wins with a score of " + teamgreen);
Console.WriteLine("It's a tie with both teams scoring " + teamgreen);