Create barrier.java

class for all walls and such barriers that the player/enemies cannot pass through. 
it will set the players position to away from its self! like the entity rebounds from it.