ah ok sorry I think I see another problem.. first, the xscreen, this only needs to be put ONCE, at the top of your code, (as you have, but not in the if) cause it just makes the bottom screen available to use, another thing is add a VSYNC (if you don't know, it makes your program run smooth instead of a million frames a second) and lastly theres one other thing. though I will go check in my code