adding basic ball detection