fixed bug with left corner pruning, added rule check when predicting
merged and resolved...