Messing with Scala: Japanese crossword (nonogram) solver