Clearly, the code is cut off, maybe due to being larger than some maximum for this forum. Just have a look at the end of your post and see yourself.
In principle, when complete, it should work with everything in one source file. My advice:
Then replace the digital part by the analog part above (clock, face and three hands).