Then player A would trade stock 1 with player B incuring no cost to site owner. In fact site owner would charge a trade commission like 0.50% or something.
If a player wants to cash out a stock which has no other buyers the site owner can do it for another premium fee.
For internal trades, you either have to close out both positions when one wants to close (first to profit closes), or you have to hedge the other.