add game logic

Signed-off-by: lional <lional.king@gmail.com>