use pacman model in game