Java version of Gnocatan!
The source.