added moves.direction to detect where we are moving and tests for it