Made the data binding between the squares and the input field more angulary.