moved the connection for close to player constructor