Reorganized variables and functions a bit

- moved variables to files of code what they are used for
- colors functions moved to newfile colors.js