Added helper functions for fortify and attack.