An illegal formation does not mean a sure loss, in some cases, the team will even win the match. Like Mar Wie said, you should have gone down both flanks. The formation was illegal both for having no wide players and for having only two defenders.