added demo gif and added detection for losing.