getValidShuffledState

private fun getValidShuffledState()

Generates a valid shuffling of the puzzle tiles.

A shuffling is considered valid if the resulting state is not equivalent to the goal state and if it is solvable (that is, it has an even number of inversions).