fix bugs and add several helper methods in soccerwayhandler.py