simulates a sequence of coin tossing events and plots the corresponding 2-D random walk