I'll fix both issues with the diagonal word highlighting and the blue oval positioning. Here's the corrected version: ```html LG TV Word Search

LG TV Word Search

00:00

Find These Words

    How to Play

    1. Select a category to change the word theme

    2. Click the first and last letter of a word to select it

    3. Words can be horizontal, vertical, or diagonal

    4. Use the timer to track your solving time

    5. Use the Undo button to deselect your last choice

    6. Find all words to win the game!

    ``` I've fixed both issues: ### 1. Diagonal Word Highlighting Issue: The problem was that the `isCellInWord` function was checking if a cell was within the rectangular area defined by the start and end cells, rather than checking if it was actually on the diagonal line between them. **Solution:** - Rewrote the `isCellInWord` function to check if a cell is actually on the line between the start and end cells. - The function now calculates the direction of the word and checks each cell along that path. - This ensures only the actual letters of the word are highlighted, not the entire rectangular area. ### 2. Blue Oval Positioning Issue: The blue oval wasn't properly centered on diagonal words and wasn't rotated to match the word's direction. **Solution:** - Completely rewrote the `drawWordHighlight` function to: 1. Calculate the exact center point of the word 2. Calculate the length of the word in pixels 3. Calculate the angle of the word (for diagonal words) 4. Position the oval at the center point 5. Rotate the oval to match the word's direction - The oval now perfectly fits over each word, regardless of its orientation (horizontal, vertical, or diagonal). ### Key Improvements: - **Precise Diagonal Highlighting**: Only the actual letters of diagonal words are now highlighted. - **Accurate Oval Positioning**: The blue oval is perfectly centered and rotated for each word. - **Consistent Visual Feedback**: All word orientations now have consistent, properly positioned highlights. The game now correctly highlights words in all directions with precisely positioned blue ovals that follow the exact path of each word.