Added setLocale function to Player class