A student has stayed up all night working on a project in ho…

A student has stayed up all night working on a project in hopes of finishing it before class begins. Soon the student begins experiencing headaches and is unable to concentrate due to the lack of sleep. What part of the brain is being most affected due to over exposure to the task?