added equals to piece, fixed bug where pieces were still in the array of pieces, fixed preconditions bug in pgn parser