Ahh you might wanna eliminate the message codes. Reference stuff like player.head, player.shield, player.colors[index], and so on instead.
Keep up the work though. Something like this is good to have as reference, just be sure to correct and take note on peoples suggestions.
