adds detection of enemies, adds very basic error checking of user input before parsing