Changed map Y=1 to top from bottom