public static void AddBonusPoints(int height, int width, int i, Point p, List <Point> kill, List <Point> bonus) { switch (i) { case 1: for (int j = 1; j < height - 1; j++) { bonus.Add(new Point(p.x, j)); } Match3.AddPoints(ref kill, bonus); break; case 2: for (int k = 1; k < width - 1; k++) { bonus.Add(new Point(k, p.y)); } Match3.AddPoints(ref kill, bonus); break; case 3: for (int j = 1; j < height - 1; j++) { bonus.Add(new Point(p.x, j)); } Match3.AddPoints(ref kill, bonus); for (int k = 1; k < width - 1; k++) { bonus.Add(new Point(k, p.y)); } Match3.AddPoints(ref kill, bonus); break; } }