Added flip card into input box function