add game main logic