@Override
	protected void doTick(Graphics g, long delta) {
		if(isStarted && !gameover){
			for(GameObject go: getGos()){
				go.tick(delta);
				go.drawTo(g);
				if(go instanceof FlappyWall && !go.isDead()){
					if(go.getPos().getX() < player.getPos().getX()){
						points+=250;
						go.remove();
					}
				}
			}
			if(player.isDead())
				gameover = true;
			
			doWallTick(delta);
		}else if(gameover){
			gameoverTick(delta);
		}else if(!isStarted){
			player.drawTo(g);
		}
	}