Fixed

Fixed Syntax errors and reintroduced the Boolean variabe to have a
continuos loop. Program works now.