Add UI count scripting and win condition