Did a lot of work on the main file, build an attack function but its not working...