Implementerat goalRow-check