change selfPlayer to pomelo.player