fix gameover and revive function