updates to add game loop