Groundstate solutions for a nonlinear Choquard equation