Candy Crush Duplicate

I am trying to create a 3-match game like Candy Crush, currently the basic functions are done.

Demo GIF

alt tag
Updated gif with special candy.

Setup

$ git clone https://github.com/weiqing/3-match-pixijs.git
$ cd 3-match-pixijs
$ python -m SimpleHTTPServer 8000

Then go to latest Chrome browser and open http://localhost:8000/3match.html

Functions

You can use the develop tool by Chrome to call the following functions

level.removeSpecificCandy(color)

Removes all the candies with certain color(num).

level.removeRow(row)

Removes a certain row(num).

level.removeColumn(column)

Removes a certain column(num).

var candy = level.candies[x];
level.removeSurroundCandies(candy);

Removes a 3x3 candies around input candy.

Progress

Currently finished features:
Render sprites on the screen.
User can swap tiles (Improve animation later).
Generate tiles (will not connect more than 3 tiles on a row/col).
Remove matched candies.
Added two sound effects.
Special candies in progress.

Tutorial

Referred to the iOS tutorial http://www.raywenderlich.com/75270/make-game-like-candy-crush-with-swift-tutorial-part-1