Highlights on click and assigns values to square after button press