mod player as a class now

keep the correct scope