Implemented good text wrapping algorithm and basic dialogue