Move tile-related constants to constants.js