 		}
 	}
 
-	var showPlayerNameFields:Bool = true {
-		didSet {
-			animateLayout()
-		}
-	}
-
 	// MARK: UIViewController Overrides
 
 	deinit {

				superview.frame = frame
			}
		}

		let alpha:CGFloat = showPlayerNameFields ? 1.0 : 0.0
		questionLabel.alpha = alpha
		playerOneNameInputField.alpha = alpha
		playerTwoNameInputField.alpha = alpha
		playerThreeNameInputField.alpha = alpha
	}

	private var dialogSize:CGSize {

		let width:CGFloat = 300.0
		let heightWhen3NamesAreVisible:CGFloat = 468.0;
		let heightWhenClosed:CGFloat = 306.0
		let playerThreeNameInputFieldHeight:CGFloat = playerThreeNameInputField.intrinsicContentSize().height

		if !showPlayerNameFields {
			return CGSize( width: width, height: heightWhenClosed )
		}

		switch nameCount {
			case 2: return CGSize( width: width, height: heightWhen3NamesAreVisible - playerThreeNameInputFieldHeight )
			case 3: return CGSize( width: width, height: heightWhen3NamesAreVisible )
			default: return CGSizeZero
		}
	}

	private func addParallaxEffect() {

		layout()
	}


	// MARK: IBActions

	@IBAction func addToGallery(sender: AnyObject) {

		// collect names
		var names:[String] = []
		var namesEnteredByUser = 0

		var fields:[UITextField] = []
		switch nameCount {
			case 2:	fields = [playerOneNameInputField,playerTwoNameInputField]
			case 3:	fields = [playerOneNameInputField,playerTwoNameInputField,playerThreeNameInputField]
			default: break;
		}

		for nameField in fields {
			var name = sanitize(nameField.text)
			if countElements(name) == 0 {
				name = NSLocalizedString("Anonymous", comment: "AnonymousPlayerIdentifier")
			} else {
				namesEnteredByUser++
			}

			names.append( name )
		}

		delegate?.didSaveToGalleryWithNames( namesEnteredByUser > 0 ? names : nil )
	}

	@IBAction func discard(sender: AnyObject) {
