removing magic numbers and strings from the playerview