Puzzle solver made during Scala hackathon