Added logic for left and down