Implemented lives into the game and also implemented an invincible state after each time the player dies