Mastering the game of Go without human knowledge