Changed window referencing code

Altered the code so that in no longer mistakenly refers to the upper
window when running z1 and z2 games.