Almost completed RDPNFA.java, failing one case