meander prototype mostly working

loads of duplicate code though. And the speed should definitely be
adjustable