Arduino/Processing code tracking movement/acceleration from a strike