Added exceptions.

Added piece team and type getter.