dice rendering working but could use refactoring