got the reset button to work and show when the game is over. the only issue is the reset button is present upone page refresh, then only dissappears after the initial turn is made
fixed the issue with the reset button showing up in the beginning. By setting it as display: none in my html file, you just make it show in the program. its cleaner