Update damage.lua

* Add string.format() to error()
Update schedule.lua

* Add string.format() to error()
Update score.lua

* Add error({code="ENDOFGAME"}) to M.lose() and M.win()
  for generating specific exception to notify the end of game
* Add M.checkcond()