restructuring/reorganizing world update code

made the code to kill the player when his health = 0 in the player class
instead of the world.