Started some broad changes for the project

Modified several functions to allow for the world to be defined as a
rectangle rather than a square.
Changed the world from a simple bounded rectangle into a two-dimensional
torus.