Finish front-end code to make pieces move with camera detection.