Map generation and tile rotating