Simple Gomoku Hack in JS