added undefine check

to take care of an error that occurs when

remotePlayers[data.id].score is called in onUpdateRemoteScore where remotePlayers[data.id] is undefined