Navigate a Grid Using Combinations And Permutations