Added very basic piece finding code in trntsession