Feature end game

Implement update method in mockData so you guys could use mockdata to do an update
Add action listener on server side to check whether a game reaches its deadline.