bugfix for kings and knights being able to attack own pieces