Working on main: got apply and getpossiblemoves to work