This is a slider puzzle that does not use arrays and can be used as a standalone game or as a puzzle in a larger game.
Here is the game:
https://www.scirra.com/arcade/puzzle-games/scirra-slider-puzzle-includes-capx-download-2124
Here is the tutorial:
https://www.scirra.com/tutorials/4819/create-a-sliding-puzzle-without-arrays
Come give the game a try and use the CAPX to create your own slider games!