computer play implementation