added messagedialog for winner