Does the CPU always take the max yellow or the min red if no yellow is available? That makes the game completely predictable and reduces it to something like a maze.
Someone mentioned multiplayer. That would be more interesting. There could also be different CPU opponents that use different strategies.
On a side note, it would be actually very interesting to have different strategies play against each other. Axelrod and tit4tat comes to mind. :)