Shuffle function, first try

Swapping of cells works, however a unsolvable puzzle may result.