Update StackImpl.java

deleted unnecessary else loop.