AMS Code Review Update
Added Check Win function
Added User Click Response
Linted Code