Added a state update. Added mouse position tracking. Added highlighting of squares on hover.