update menu logic to determine next move