Adding AJAX request to make bot move