Add new grid module for generic 2D logic
Use grid abstraction to reduce code complexity of handleCombos