Replaced few deprecated methods in PieceMove class