Use jQuery to solve N-Squared puzzle

Choose a row size: 3 4 5 6
Congratulations! You have won!!