mod: code reformatting
mod: tile code refactoring to reuse components