private void checkToTurn()
    {
        if(atWorldEdge()) {
            moveSpeed = moveSpeed * -1;
        }
        if(isTouching(Tree.class)) {
            moveSpeed = moveSpeed * -1;
            numOfCollisions++;
        }
        else {
            numOfCollisions = 0;
        }
        if(numOfCollisions > 10) {
            explode();
        }
    }