Thats the thing though. He knew Anakin was coming and was purposely trying to NOT beat Windu which seemed obvious, at least to me, in his choice of fighting style and the pace at which he was performing. He was pacing himself to match Windu, to prolong the fight as long as possible so then when he felt Anakin about to enter the room, allowed himself to be beaten and put in that situation. If he would have killed him before Anakin got there, theres no way he could orchestrate the events thereafter and he himself might look like the bad guy, which he really is and Windu would have been seen as a martyr, exactly what Palpatine does NOT want. Anakin needed that final push and Palpatine provided it by taking the huge gamble that Windu would kill him before Anakin entered the room.
Why he would take such a gamble is easily explained by his ability to foresee things through the Force. Its not like Anakin, where its just flashes and images that cannot be fully interpreted by him. Dantius is much more experienced and can see entire situations, often in clarity, detail, and certainty. Alot of what makes Palpatine such a strong leader is his ability to foresee things and direct his forces according to that. He's often able to get the jump on the enemy beforehand or know where to go or strike, or where to defend.
I don't have a link for the game. I saw it in a magazine.
EDIT:
I've just confirmed that it WAS in fact THE Falcon in the movie. There are also plenty other easter eggs I wasn't even aware of. Star Wars.com has some of them, and most of them will be on the dvd probably.
Also, heres a link to the game. Its called Empire at War. Those are some sweet graphics, especially the fleet battles. It will probably be a monster though and demand alot from a computer. I was thinking of investing into a new laptop and using this one as a backup. But I'd rather wait to see if the Pentium V processors will be out sooner than later and laptops will come with a powerful graphics card already built in.
http://www.gamespot.com/pc/strategy/starwarsrts/screenindex.html