Google Interview Question

How do you design the mine-sweeper game? Write the function for clicking on an empty square.