tiles game in jquery