uses actions to update snake