Fixed bugs in length of capture of piece