Externalize Player code