Typo/MidpointY fix

Typo and fixed midpointY in gamerenderer