Can now properly quit a battle without having the code explode