a minimax implementation for a Crafty.js  connect4 javascript game