team logic fixxed and added some methods. still NOT FINSIHED & TESTED !!! runable

TODO: sorting and team order