Implementation of Knight Shuffling Tower