Add difficulty slider + timer.

- Add a slider for controlling mineratio
- Add a timer to take time for succesful games
- Make clicking the ended game start a new one.
- Refactoring: changed some broken this-references to refer to the
correct object, not the window object.