Note that Pac-Man doesn't necessarily stop when you release the button - he stops on the tile or half-tile (I don't have the game in front of me, so I can't tell you which it is). The point is, he will always stop at a multiple of X pixels, which happens to line up perfectly with all the tunnels and branches.You need to work out a way to make the actor "snap" to the tiles like this.