Sure, I can help you create a simple soccer game using JavaScript and HTML. Right, we'll implement it as a single HTML file, enclosed in `script` tags. Let's break down the steps to achieve this game:
1. Set up the HTML structure: Create a canvas element to display the game and necessary elements like goals and player positions.
2. JavaScript Variables: Define necessary variables for game tracking, including player positions, goals, and game state.
3. Game Loop: Implement a game loop that updates the game state and redraws the canvas.
4. Player Movement: Implement player movement based on user input.
5. Game Logic: Implement collision detection, goal scoring, and game finish logic.
6. CPU Control: Implement CPU-controlled player movement.
This is a basic structure for a soccer game with CPU-controlled players. Remember, you'll need to add proper game logic, AI, and other features to make it more enjoyable. Feel free to extend and customize it as per your requirements.