Dynamically added the addXO function to each square.