Fun* is overrated.
Glad you got it working. Make sure when you do your final program the assignments are correct in the "Main" function for the inputs and output. Also don't use ports 1-6 as an output as it will use a valuable interrupt. Ports 10-18 are already assigned outputs FYI.