Mines are now randomly placed by calling the rand function outside of my while loop. Was also able to make the player start correctly at the beginning after the game ends