and yes i see i missed a } after a while statement

sooo tired