Taipans edge Phoenix in NBL thriller