Mastering level of groups