coding bat array problems