I haven't written anything for a processor like that but usually there is no wrong way to store something as long as your logic works with how you stored it. I know that's not really an answer but it's true. If you are able to create arrays I would simply make a 2 dimensional array and loop through to solve the puzzle.