make use of AngularJS modified game logic

Use AngularJS in game logic;
move the logic inside isMoveOk into createMove.