Tetris in AngularJS