Update Entity.java

Updated wall collision detection