Mostert wins action-packed Supercars race