Chess Directive for AngularJS