Mine sweeper game in JQuery