Implementation of King of the Hill game using Signal R and type script