can now calculate moves, needs to be tested though