Javascript Shikaku puzzle game