Memory controller working. Final commit pls dont break