It helps to prioritize your activities. Sounds like you have 5 main areas to prioritize: school, sports, social life, programming, and video games.
Being 17, you'd be hard pressed to skip out on that so that takes priority number one and consumes the biggest chunk of your day. I assume sports is linked with school and comes right after which is around 2 to 2.5 hours after school is out.
This leaves the last 3 (programming, social life, video games) to prioritize. Out of those 3 which is most important to you? After 8 hours of school and 2.5 hours of sports for the day, you'll be left with around 3 - 4 hours to devote either video games or programming during the week (assuming the weekends are devoted solely to your social life).
If programming takes priority over video games, target spending 2 hours right after your sports to go at it and then the last hour before bed for some video games.
From an organization standpoint, you don't need any fancy apps. If you are looking to accomplish some serious goals in programming or video gaming, it's just as easy to keep a spreadsheet.