public void CheckBoundries(int scrnWidth, int scrnHeight) { if (pos.Y <= 0) { pos.Y = scrnHeight - 1; } if (pos.Y >= scrnHeight) { pos.Y = 0; } if (pos.X <= 0) { pos.X = scrnWidth - 1; } if (pos.X >= scrnWidth) { pos.X = 0; } }