removed references to apache log, to enable to run on android
refactored the Piece object to the Pieces object, which contains info
about a lot of pieces in big arrays