As for IA consider putting at least something. a) thing that selects first free cell (1 -> 9); b) takes a set of free cells and selects one randomly :)
You just stole my idea for AI (Easy level). Also there should be Normal and Impossible levels. On Impossible computer always wins;)�