moved variables upto declarations
rearranged some functions
tidied some more functions
object tracking modified
velocity mod modified,enhance colors added
started cleaning up match templete, last function to clean
finished cleaning