Simple Go game in Java