working gomoku

all works, but you can play out of turn.