number of lives displayed in the dock updates with the gameplay