basic beat detection and sphere movement