Detect properly when a piece can be erased

Now I detect properly when a piece can be erased

Signed-off-by: riabop <riabop@gmail.com>
Adding a timer, creating a new js object

Adding a timer to measure how long it takes to finish a level

Signed-off-by: riabop <riabop@gmail.com>
improvements in the game logic

improvements in the game logic

Signed-off-by: riabop <riabop@gmail.com>
Merge branch 'master' of https://github.com/riabop/mahjong
adding a simple time meter

adding a simple time meter

Signed-off-by: riabop <riabop@gmail.com>