Why does my code just return null 10 times? what have I done wrong? X'D