Fixed the errors in the paging code but it doesn't handle page faults yet for some reason.