Added level 39 and 40.
Change how mouse events are detected.