implement pieceCount & isBoardFull()
Functions.java