changed player id and added constant way to send data