ball tracking + memory leakeage fixed