isLegalMove updated

checks for number of pieces in the path the moving piece will travel, including that piece itself.
if we find one piece, we'll know that it is safe to move that piece (we only found it).
otherwise, a different number (hopefully not 0) tells us that the path is blocked.