Pies edge Bombers in Anzac Day thriller