add legalsrc to test if the source is a possible legal piece