Minor fix in game loop

Changed update & render conditions to use function call instead of
variable (increases accuracy)