Use java to write a simple version of Gomoku game