private ColorID defineColor(String color)
    {
        ColorID colorID = ColorID.WHITE;
        if( color.equalsIgnoreCase("red")){
            colorID = ColorID.RED;
        }
        else{
            if( color.equalsIgnoreCase("orange")){
                colorID = ColorID.ORANGE;
            }
            else{
                if( color.equalsIgnoreCase("yellow")){
                    colorID = ColorID.YELLOW;
                }
                else{
                    if( color.equalsIgnoreCase("pink")){
                        colorID = ColorID.PINK;
                    }
                    else{
                        if( color.equalsIgnoreCase("blue")){
                            colorID = ColorID.BLUE;
                        }
                        else{
                            if( color.equalsIgnoreCase("purple")){
                                colorID = ColorID.PURPLE;
                            }
                            else{
                                if( color.equalsIgnoreCase("white")){
                                    colorID = ColorID.WHITE;
                                }
                            }
                        }
                    }
                }
            }
        }
        return colorID;
    }