Lotto: update server/client codes