player as a global object