tile game in jquery