added partial game algorithm. 'angularized' html