add test for wouldAttack. Fix PGN test
fix assert
remove unused function skip_space