Simple Java 2D collision detectoion engine