implemented enemies and global map repainting thread