Reworked the Tile and Piece classes + doc

Reworked the Tile and Piece classes to use inheritance. Updatade
documentation.