refactored the rest of the code and fixed full screen bug