Pic16F877 code for a ping pong ball sorting robot