You can buy re-released classic games online or use official emulation services like Nintendo’s Virtual Console. Sites like GOG.com also offer legal ways to play old games.