Transfering player methodos from main.py to player.py