for(int i=0; i<8; i++)
{
Actor x = (Actor) getOneObjectAtOffset(i,0,null);
if(!getObjectsAtOffset(i,0,null).isEmpty())
{
if(x.getX() > mX)
{
setLocation(mX, mY);
selected = false;
aktion = true;
i=8;
}
}
else if(i==7)
{
setLocation(mX, mY);
selected = false;
aktion = true;
}
}if(x.getX() > mX)
