for loops converted to for each

This is in preparation for many optimizations; such as moving repeating code to a separate method (server-wide chat message sending), and the disabling of server-wide chatting in favor of game-based chat. Hashtable implementation being considered due to O(1) lookup but depending on current functions and their dependency on existing vectors may not affect running time significantly or severely break current functionality