Added automatic win and replay