Created checkAnswer function in Util and got it from GameFragment