Update Space.java

fixed wall collision bug