battle checking correct input at correct timing and determine action done