changed the resize function
upstream Merge branch 'gh-pages' of https://github.com/aliceqhuang/processing_games into gh-pages