Namespace chesspp, and exception handling.

Wrapped everything in the namespace chesspp.
Created a custom exception handling class.