added onclick on squares