update the arrays in directionToMove method to stop Spec failing