private int getScore(Point[] points) {
        int playerone=0;
        int playertwo=0;
        for(int i=0;i<points.length;i++)
        {
            if(points[i].getState()==Board.PLAYER_ONE)
            {
                playerone++;
            }
            else if(points[i].getState()==Board.PLAYER_TWO)
            {
                playertwo++;
            }
        }
        if(playerone>0 && (playertwo==0))
        {
            //The score is returned as positive for player one and negative for player two (convention)
            return playerone;
        }
        if(playertwo>0 && (playerone==0))
        {
            return -playertwo;
        }
        return 0;
    }