private void walk() { Console.WriteLine("start walk"); //get keys to start from int[][] startkey = { new int[] { 0, 1 }, new int[] { 1, 1 }, new int[] { 2, 1 }, new int[] { 0, 2 }, new int[] { 1, 2 }, new int[] { 2, 2 }, new int[] { 1, 3 }, new int[] { 2, 3 } }; foreach (int[] startingNumbers in startkey) { startingKeys.Add(keypad.getKey(startingNumbers[0], startingNumbers[1])); } //use stack to get all keys StackManager s = new StackManager(startingKeys, keypad, piece, numLength, consoleOutput); s.run(); }