case North:
y--;
if (y < top)
{
top--;
}
break;
case South:
y++;
if (y > bottom)
{
bottom++;
}
break;
case East:
x++;
if (x > right)
{
right++;
}
break;
case West:
x--;
if (x < left)
{
left--;
}
break;
default:
break;
}