Tetris bot using genetic algorithm in javascript