Improve state checking in Gomoku.