Serial begin(9600) error for touch screen

Hello,
I have a problem with serial.begin(9600) that turns my 2.4 touch screen shield to white and if I remove serial.begin it works. I need serial.begin to communicate with UE4 so I cant be without Serial.begin. How can I solv this problem and my problem with touch on buttons?

Materials:
Arduino UNO 3
Arduino 2.4 TFT touch shield
UTF buttons library
Arduinokit
UE4

Code:
#define LCD_RS A5
#define LCD_RST A4
#define LCD_CS A3
#define LCD_RS TOUCH_XM A2
#define LCD_WR TOUCH_YP A1
#define LCD_RD A0
#define TOUCH_ORIENTATION LANDSCAPE
#include <UTFT.h>
#include <URTouch.h>
#include <UTFT_Buttons.h>
extern uint8_t SmallFont;
UTFT myGLCD(ITDB28,A5,A4,A3,A2);
URTouch myTouch(29,18,9,8,7);
UTFT_Buttons myButtons(&myGLCD, &myTouch);
UTFT_Buttons myPongButtons(&myGLCD, &myTouch);
int x=0;
int y=0;
String text=“You pressed”;
String text2=“Welcome to slicky”;
int but1, but2, but3, but4, butX, butY, pressed_button;
boolean default_colors = true;
String input;
void setup()
{
Serial.begin(9600);
myGLCD.InitLCD();
myGLCD.clrScr();
myGLCD.setFont(SmallFont);
myTouch.InitTouch(TOUCH_ORIENTATION);
myTouch.setPrecision(PREC_MEDIUM);
HomeScreen();

}
void loop(){

y–;
Serial.print("Value: ");
Serial.println(y);
if(Serial.available()>0){
input=Serial.readString();
if(input==“Pong”){
myGLCD.clrScr();
Pong();
}

}

while(1)
{
if (myTouch.dataAvailable()==true)
{
myTouch.read();
pressed_button = myButtons.checkButtons();
if (pressed_button==but1)
y++;
myGLCD.print("Up: "+y, 110, 220);
Serial.print("Value: ");
Serial.println(y);
if (pressed_button==but2)
y–;
myGLCD.print("Down: "+y, 110, 220);
Serial.print("Value: ");
Serial.println(y);
if (pressed_button==but3)
x–;
myGLCD.print("Left: "+x, 110, 220);
Serial.print("Value: ");
Serial.println(x);
if (pressed_button==but4)
x++;
myGLCD.print("Right: "+x, 110, 220);
Serial.print("Value: ");
Serial.println(x);
}
}
}

void HomeScreen(){

myGLCD.print(text2, 90, 0);
myGLCD.setColor(VGA_BLACK);
myGLCD.setBackColor(VGA_WHITE);
but1 = myButtons.addButton(0,0,80, 80, “Up”);
but2 = myButtons.addButton(230, 150, 80, 80, “Down”);
but3 = myButtons.addButton(0, 150, 80, 80, “Left”);
but4 = myButtons.addButton(230, 0, 80, 80, “Right”);
myButtons.setTextFont(SmallFont);
myButtons.drawButtons();
myGLCD.print(text,CENTER,CENTER);

}
void Race(){
but1 = myButtons.addButton(0,0, 80, 80, “Up”);
but2 = myButtons.addButton(230, 150, 80, 80, “Down”);
but3 = myButtons.addButton(0, 150, 80, 80, “Left”);
but4 = myButtons.addButton(230, 0, 80, 80, “Right”);
myButtons.setTextFont(SmallFont);
myButtons.drawButtons();
myGLCD.print(text,CENTER,CENTER);
myGLCD.setColor(VGA_BLACK);
myGLCD.setBackColor(VGA_WHITE);

}
void Pong(){
but1 = myPongButtons.addButton(0,0, 80, 80, “Up”);
but2 = myPongButtons.addButton(230, 150, 80, 80, “Down”);
myPongButtons.setTextFont(SmallFont);
myPongButtons.drawButtons();
myGLCD.print(text,CENTER,CENTER);
myGLCD.setColor(VGA_BLACK);
myGLCD.setBackColor(VGA_WHITE);
}
void Asteroids (){

but3 = myButtons.addButton(0, 150, 80, 80, “Left”);
but4 = myButtons.addButton(230, 0, 80, 80, “Right”);
myButtons.setTextFont(SmallFont);
myButtons.drawButtons();
myGLCD.print(text,CENTER,CENTER);
myGLCD.setColor(VGA_BLACK);
myGLCD.setBackColor(VGA_WHITE);
}
void Sidescroller(){
but1 = myButtons.addButton(0,0, 80, 80, “Up”);
myButtons.setTextFont(SmallFont);
myButtons.drawButtons();
myGLCD.print(text,CENTER,CENTER);
myGLCD.setColor(VGA_BLACK);
myGLCD.setBackColor(VGA_WHITE);
}
void Pacman(){

but1 = myButtons.addButton(0,0, 80, 80, “Up”);
but2 = myButtons.addButton(230, 150, 80, 80, “Down”);
but3 = myButtons.addButton(0, 150, 80, 80, “Left”);
but4 = myButtons.addButton(230, 0, 80, 80, “Right”);
myButtons.setTextFont(SmallFont);
myButtons.drawButtons();
myGLCD.print(text,CENTER,CENTER);
myGLCD.setColor(VGA_BLACK);
myGLCD.setBackColor(VGA_WHITE);
}

UE4_sketch.ino (3.78 KB)