The first sounds like the most sensible thing to do here, just calculate the position on one of them and everything else is relative to it. At the end of the day its just 9x9, i.e. 81 unique positions, you can precalculate that on startup and be done with it...