change sleep calculation in boss fight function