fixed compiler error, fixed player death animation, restart game can only be executed if the player is dead