implemented player respawn (fixed #27)