The latest price is determined by the most recent trade made between two players. Very often, other players will want to buy or sell shares at a price slightly better for them, usually a cent or two, than the most recent trade.