By the way, I never figured it out, what the heck is the purpose of marking squares in minesweeper?

So you can mark where you think the mines are - making it easy to see the squares you have to figure out. It also protects the square from hamfisted players from accidentally clicking on a mine they knew was there!

Gareth