Making the player an external variable