An AI to play gomoku