Snake clone build on AngularJS