Moved player respawn to its own function player.respawn(x,y,force), and added force argument to force kill the player if needed.