rewrite move test using new position class and direction class