Move VBlank function to a file