A Game of Hex, written in Haskell and Java