Implemented basic motion detection in src/testing.cpp