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>