Added validation across the board.

Battle, issuing a challenge, Flashcards (no empty decks, flashcards)
Added checks for flashcard answers

Trim whitespace and convert to lowercase so that these issues don't
arise in answering the question.