Wow! I did it, what EliasJosue said was right, i should have put the drawing function above the "if" statement. Thank you so much for helping me :)