Added ability to count all possible grid formations