Fixing bug where you could no capture a piece keeping you in check