Update Pac class

Pac cannot leave the map. New function for this.