Sometimes when you hit a wall instead of bouncing off it you get stuck, here is the link to the source code , plz post how to fix this
public boolean atWorldEdge()
{
int wide = getImage().getWidth();
if(getX() < wide / 2 || getX() > getWorld().getWidth() - wide / 2) return true;
int high = getImage().getHeight();
if(getY() < high / 2 || getY() > getWorld().getHeight() - high / 2) return true;
return false;
}