Moving stones functional

First draft, needs refactoring and better app desing.