BETA!; added chooseTurn func post-goal; bug fixing;