chess app using angularjs, php, and mongodb