private void renderPlayer(Graphics g){
		if(player.isGrounded()){
			if (player.isDucked()) {
				g.drawImage(Resources.duck, (int) player.getX(),
						(int) player.getY(), null);
			} else {
				Resources.runAnim.render(g, (int)player.getX(), (int)player.getY(), player.getWidth(), player.getHeight());
			}
		} else {
			g.drawImage(Resources.jump, (int)player.getX(), (int)player.getY(), player.getWidth(), player.getHeight(),null);
		}
	}