Fixing bug in InsertPiece