set up obstacle.java for super class