Implements game boundaries.