fixed extention issue with popup.html
Fixed wrong state of win for game over