added registering player on connect
minor fixes/improvements