Moved wallCollision() functions to map.js