Added death handling(Changing team after dead)