added boss appearance logic