add Game, Stopwatch and other logic functions.

Signed-off-by: Curno <lyf.curno@gmail.com>