incorporated attacking. various bug fixes.