Can't think anymore. Will try fixing stupid linked list in the morning