messy JS game witch screen resizing as its only mechanic