transfering playerLoop method to player.py
tryingo to fix upload