public void calculateOffset(){
		
		/* Calculate the Offsets for scrolling around the level */
		
		// constants
		final int centerx = getFrame().getWidth() / 2;
		final int centery = getFrame().getHeight() / 2;
		
		levelParser.setOffset( new Point(0,0) );
		
		if  (isMoving()){
			
			/* the confusing conditionals 'if' jungle */
			if ( getDirection() == LEFT){
				if ( getLeft() < centerx ){
					//if ( levelTop > 0 ){
							levelParser.getOffset().x = 2;
							setVectorX(0); /* stop the player from moving */
					//}
				}
			}
			
			if ( getDirection() == RIGHT ){
				// if sprite has passed the frame center 
				if ( getRight() > centerx ){
					//if ( levelWidth > levelRight ){ // this check is not working.
						levelParser.getOffset().x = -2;
						setVectorX(0);
					//}
				}
			}
			
			if ( getDirection() == UP ){
				if ( getTop() < centery ){
				//	if( levelLeft < 0 ){
						levelParser.getOffset().y = 2;
						setVectorY(0);
					//}
				}
			}
			
			if ( getDirection() == DOWN ){
				if ( getBottom() > centery ){
					//if ( levelHeight > levelBottom ){ // fixme
						levelParser.getOffset().y = -2;
						setVectorY(0);
					//}
				}
			}
			/* you crossed it! hope you comprehended a word or two */
			
		} /* if isMoving() */
	}