Added animation functionality for single square