Press the block that's next to the hole, then it will "slide" over
It's the most straightforward slide puzzle coding