Tetrisgrid management

Intergrating the new TetrisGrid methods with the master file