added proper unit attack selection aswell as I completed the defense phase