Moved time counting to separate function.

It has to be called as function, because we need to handle delay on creating game (mongo).
Join socket to room on create (bugfix).
Merge branch 'typing'