added wires and pathfinding( unstable )