Implementing the board game "Thud" from Terry Pratchett's Diskworld in Scala