typo fixed in isLegalMove

if you find more than 1 piece than the path is blocked