fixed issue with duplicating figures when king is in check