Fixed a bug and inject $timeout.

numberOfSecondsForTurn should be int instead of string…