Fixed isMoveLegal functions

Implemented so that the function works in both directions (for both black and white) and so that the ones that aren't allowed to jump over other pieces can't do that.