javascript game like 9 puzzle