Improved code style of player class and added new constants