mv stack so it can be shared
move frame to util
Fix frame management in parser
Implement while loop