Added distance checker & fixed bat ai