Extracted constants, functions; removed debug outputs
Migrated color from String to char*