Added logic for enemies to get around objects