Fixed PlayerId issued

Basically renamed playerId to peerId, then fixed problems that arose
from that.