313. Sliding game