public Color handleColor(int color, int shapeNumber) { if (color == 1) { return(Colors.GreenYellow); } if (color == 2) { return(Colors.Red); } if (color == 3) { return(Colors.Gold); } if (color == 4) { return(Colors.Violet); } if (color == 5) { return(Colors.DeepSkyBlue); } if (color == 6) { return(Colors.Cyan); } if (color == 7) { return(Colors.LightSeaGreen); } return(tetramino.getShapecolor()[shapeNumber - 1]); }