A proof-of concept to generate and solve an 8-puzzle, expanded to n-by-n size