refactors
conditionalize height and width of tiles using trigonometry