Unlock (hasmaps)

where is the logic going wrong in my code???
please help