Count unique paths with certain obstacles code added