added encounterstepcount for random encounter