Java a* visualization