Single click (do not drag) the square horizontally or vertically adjacent to the empty square to move the pieces till you get the following image: