Added cost map checking to searchServer