Searches of extrasolar planets towards M31 by gravitational pixel-lensing