It was a crazy ending to the 27th leg as Gary Anderson took a huge step towards winning his World Matchplay tie with Steve Beaton.