draw functionality

Added the possibility of the gam ending due to a