This is a temporary server side logic required to handle the game Gomoku, done in Ruby.