More general pac-man improvements.