castle wall builder and ground binary search added