Problem with width/2 and height/2

You are correct, here is my new code de-bugged... Thank-you everyone!!!

int growth = 3; //this variable will help the snake grow as it captures the food, it will also effect the initial length of the snake
int snakeSpeed = 1; //how fast the snake moves

final int SNAKE_SIZE = 15; //the snake is made up of ellipses, this variable determines the size of each ellipse
final int SNAKE_LENGTH = SNAKE_SIZE*growth; //initial snake length will be three ellipses based off of SNAKE_SIZE


**int snakePosX; //the starting X position for the snake**
**int snakePosY; //the starting Y position for the snake**



float tgtX = random(0, 500); //this will assign the food a randomw position
float tgtY = random(0, 500); //this will assign the food a randomw position
int tgtSize = 15; //the food size should match the snake size

boolean hit = false; //controls hit detection logic for when the snake hits the food 
int totalHits = 0; //the game will start at 0 points and in increase by 1 with each food catpure
final int MAX_HITS =5; //the player wins the game if they catch the food 5 times

boolean borderHit = false; //the game will be over if the snake hits the wall

String restart = "RESTART";
String exit = "EXIT";

//the following boolean variables will control the movement of the snake, this seemed to be the easiest way to do this
boolean moveUp = false; 
boolean moveDown = false;
boolean moveRight = false;
boolean moveLeft = false;

//variables for the end game option box sizes and locations
int endGameBoxSize = 100;
int endGameBoxX = 250;
int endGameBoxY = 150;



void setup()
{
  size(500, 500);  // set the canvas to 500 pixels as per the instructions
  rectMode(CENTER); //I prefer drawing rectangles in this mode
  strokeWeight(5); //thicker lines make the game look more fun
  textAlign(CENTER); //this is my preferred method for using text
  **snakePosX = width/2;**
 **snakePosY = height/2;**
}