Creating 2048 using AngularJS