Fixed the resizing issue. Now sudokugrid remains a perfect square even on resizing.
Few minor issues are still left.