almost drawing pieces in browser