new path class
implemented class path for better path checking, improved boardlistener