begins logic for computer implementation of basic strategy