private void updateApple() {
        Random rand = new Random();
        int x = rand.nextInt(476);
        int y = rand.nextInt(426);
        while (x % 25 != 0 || y % 25 != 0) {
            if (x % 25 != 0) {
                x = rand.nextInt(476);
            }
            if (y % 25 != 0) {
                y = rand.nextInt(426);
            }
        }
        
        APPLE.setBounds(x, y, 25, 25);
        
        /**
         * Check to see if any of the coordinates for the snake are the same
         * as the apple coordinates, if so then generate new coordinates
         * for the apple, until an empty slot is found.
         */
        for (int i = 0; i < SNAKE.getSnakeBody().size(); i++) {
            if (SNAKE.getSnakeBody().get(i).intersects(APPLE)) {
                System.out.println("Debug: Same coordinates");
                updateApple();
            }
        }
    }