starting to refactor opening defense functions
unbeatable, needs massive refactor
start of large refactoring process, removes unused functions