simple ai for jhlywa's chess.js