How do Sokoban deadlocks happen?
A deadlock means no sequence of legal pushes can get the crate to its goal. A crate against two walls in a corner is the simplest example. It cannot be pulled back out. A long wall can also trap a crate if the goal is on the opposite side of the room.
Try pushing a crate toward the left wall in the first room. Use Undo when the solver reports a deadlock. Before pushing again, check whether you can stand on the far side afterward.