Fixed a bug when running out of lives