AJ Lopez scored 18 points for Richmond, including the go-ahead layup with 49 seconds left as the Spiders defeated William & Mary 90-86 on Tuesday.