Weird behavior with booleans

yes the ai needs to know which bed hes hiding under