@Override
			public void actionPerformed(ActionEvent arg0) {
				long curTime = System.currentTimeMillis();
				if(timePassed < 1000) {
					framerate++;
					timePassed += 20+System.currentTimeMillis()-curTime;
				} else {timePassed = 0; framerate = 0;}
				updateInvaders();
				updatePlayer();
				updateMissiles();
			}