Working on solution to any size board using backtracking