Coding bat logic 1 code