Success! The path is as follows:
#######
#S....#
# ###.#
# #  .#
#   #E#
#######
