refactoring kill and movePiece