add win or lose text, and bugfix