Changed variable name of 'upAndLeft' and 'downAndRight' to 'topLeft' and 'bottomRight', respectively.