fixed some bugs, collision function still not working for all boards