fixed code so you the first click will always be a blank square, fixed bug where markers were not being restored on menu close