Made else if and if statement to prevent force move