Added functions to get the width and height of the window
Added edge collision detection for snake