Changes, updates and optimization

- Changed to stringbuilder in print()
- Fixed some bugs with printing stats
- added possibility to throw exceptions when something goes wrong
(sudoku is unsolvable)
- lastly just shortened some lines.