Adding some debug messages and changes due to moving to gcc 4.8
Simplifying code: remove enums PieceType and Color