A "free side" means being exposed on the left or right, matching your Wikipedia quote. On the other hand, OP's implementation checks if it can be moved up or down.
Although looks like the images on the tiles were indeed rotated, as mentioned in another comment[1].