Fixed bug where player will still go to next level even after losing.