endmatch func in playermgmt.js,, moved vars with it