Submitting the guess using ajax.