Added direction if/else statements to forwardAlign