Fixed loop breaking when the first piece is null.
Added update of the player name
PieceType refacto of simple type. They 're now just integer instead of PieceType.
Quarto refacto of PieceType definition according to the new representation of PieceType.
Added some comments