The problem is that you're using global variables, right? Now for some reason (someone with more experience may tell you why) you can't define global variables to use screen_size as a value. So you have two options:
-Use local variables -Define variable later inside of a function