added switch to attacked squares