add game step function