Fixed a bug that caused unintended piece captures