Refactor code

Rename 'WINDOW_MAX_X' to 'WINDOW_WIDTH' and rename 'WINDOW_MAX_Y' to
'WINDOW_HEIGHT'.