Why am I getting a stack overflow at line 225 message