Swapped levels.txt and levels2.txt. Changed screenWidth to displayWidth and same for height in the setup() function. This is required to compile and run on current versions of Processing. Please update Processing to compile.