@Override
	public void update() {
		switch(this){
		case START_LEVEL_ANIMATION:
			if(System.currentTimeMillis() > end){
				//animation complete
				Game.state = State.PLAY_LEVEL;
				Game.state.start();
			}
			break;
		case END_LEVEL_ANIMATION:
			if(System.currentTimeMillis() > end){
				//animation complete
				Game.state = State.START_LEVEL;
				Game.state.start();
			}
			break;
		case GAME_OVER_ANIMATION:
			if(System.currentTimeMillis() > end){
				//for now restart the game
				Game.level = Level.ONE;
				Game.state = State.START_LEVEL;
				Game.state.start();
			}
			break;
		}
	}