Morse Theory from a Discrete Viewpoint