Fix order of numbers in state in Grid.prototype.getState
Various GameTransitions tools

GameTransitions.insertTile, isMoveInvalid, getEmptyCells