@sut3, Hi, welcome to the forum! Did you read How to get the best out of this forum?
Your post is the kind of posts I don't like to answer. I don't like to try to understand Newbie-code.
I rarely try posted code, only if it is complete, and the information is complete. But this is kind of a last resort.
Please always provide a link to the devices in question, to make things clear.
And provide either the constructor line (old style) or the panel selection (new style).
And in any case first check with GxEPD2_Example.ino. You will notice if there is something wrong. E.g. wrong display selected, or display not supported by GxEPD2.
Replace delay(50) with delay(5000), to have enough time to see what happens, in your code.
Jean-Marc