fixed isAtackedByKnight if given piece is empty