Updating squares at every interval