sprite now appears, but the height function has a logic error