Need a version of the algorithm that works on the mobile app with no web support. The web version is described here: https://github.com/msimms/StraenWeb/issues/3