added an if statement that allows for no monsters or obsticals