added request animation frame and random mushroom attack waves