fixes north direction; adds undo to all four directions