Using uniform error messages

Using "err" inside King and Pawn class for printing error message

Signed-off-by: Mayuresh Janorkar <janorkar@usc.edu>