Made it work for small maps as well only tested for 63*63