We are given a nxn partially solved square board and have to solve it according to the following rules:
- We need to fill the empty cells with numbers from 1-n^2
- Numbers already on the board cannot be replaced
- Each number from 1-n^2 must appear exactly once in the solved board
- Each row, column and both the main diagonals of the square board all must sum to the same number