fixed the game over logic, .val should have been .html, also relocated it in if/else