refactored Sudoku.scala and added toBlocks with tests