added level reader

tweaked pathfinding a little