Legislation to legalize, tax skill games in Virginia heads to governor