Hai invertito las t dalla dichiarazione MAX_HEIGTH e MAX_HEIGHT

private final int MAX_HEIGTH = 300;


int tallx = 0, tallest = 0, shortX = 0, shortest = MAX_HEIGHT;