add game basic logic