added java comments for methdos and implemented getPieceCount to get the amount of pieces on the board given a game state