Associate buttons and checkForGameOver function

Main, Replay and Save buttons now working correct
- when checkForGameOver is true, simulates stop button.click()
- if "Replay" or "Main page" buttons are pressed - window refresh.
Merge remote-tracking branch 'origin/master'

Conflicts:
	scripts/tetris.js