improved detection

Implemented new detection method to ensure detection of freeform
applications like osu!