Change remove(0) to removeLast()