fix when piece is moving that can move in X and Y direction