Playing with infinite loops and break keyword
Fixed use of immutable variable in while/inf loop