added attacking phase and started working with it