A  NEw York state judge has called for an immediate ban on daily fantasy sports sites, DraftKings and FanDuel from doing business in New York.

The state's attorney general  Eric Schneiderman called the games illegal gambling based on chance, not skill. His office sued the companies in state court to force them to stop, in October.

at Madison Square Garden on November 12, 2015 in New York City.

Both companies argued in the state capital this week, lobbying their games. The companies argue their games are based on skill and are therefore lawful.DraftKings immediately appealed Friday's rulings.

Both of these major daily fantasy companies, have partnered with some of the biggest sporting leagues including the National Basketball Association, National Hockey League and, the National Football League.