Javascript fifteen puzzle game