Added autofocus of the input field when a square is selected. Also added basic visual feedback when a square is selected.