update Player.java
add the pathValid state