Number Puzzle Game

Arrange numbers in sequence. The amount of numbers will depend on the
size of matrix.