Improve code and allow for players to run certain commands during combat.