We're here to help, not make your code run for you with no effort on your part. Also please place code between the code tags. A better question would have been to ask how you would go about implementing the logic for a win condition for this game, despite the semantics having no relevance to this language.