A simple implementation of Snake in Java using Canvas